package cn.sunshine.feign;

import cn.sunshine.domain.Product;
import cn.sunshine.domain.Result;
// import cn.sunshine.domain.Store;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "sto-server", fallbackFactory = ProductFeginClientFallbackFactory.class)
public interface ProductFeginClient {
    @PostMapping("/store/add")
    Result add(@RequestBody Product product);
}
